package com.domainVO;

import com.domain.Issue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 *     问题和对应标签id集合
 * </p>
 * @author 大忽悠
 * @create 2022/2/9 10:02
 */
@Data
@ApiModel("问题和对应标签id集合")
public class IssueLabelIdsVO {
  /**
   * 嵌套校验
   */
  @Valid
  @ApiModelProperty("问题实体类")
  private Issue issue;
  @ApiModelProperty("标签id集合")
  @NotNull
  private List<Integer> labelIds;

  public void setIssue(Issue issue) {
    this.issue = issue;
  }

  public void setLabelIds(List<Integer> labelIds) {
    this.labelIds = labelIds;
  }
}
